.class public Lcom/waiqin365/lightapp/im/activity/ChatActivity;
.super Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

.field static c:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

.field static d:I


# instance fields
.field private A:Ljava/lang/String;

.field private B:Ljava/lang/String;

.field private C:Ljava/lang/String;

.field private D:Ljava/lang/String;

.field private E:Ljava/lang/String;

.field private F:Lcom/hyphenate/util/VoiceRecorder;

.field private G:Lcom/waiqin365/lightapp/im/adapter/bk;

.field private H:Ljava/io/File;

.field private I:Lcom/waiqin365/lightapp/im/activity/y;

.field private J:Landroid/widget/ImageView;

.field private K:Landroid/widget/ImageView;

.field private L:Landroid/widget/RelativeLayout;

.field private M:Landroid/widget/ProgressBar;

.field private N:Z

.field private final O:I

.field private P:Z

.field private Q:Landroid/widget/Button;

.field private R:[Landroid/widget/ImageView;

.field private S:I

.field private T:Ljava/util/List;

.field private U:Landroid/widget/TextView;

.field private V:Landroid/widget/TextView;

.field private W:Ljava/lang/String;

.field private X:I

.field private Y:Landroid/os/Handler;

.field private Z:Z

.field public a:Landroid/widget/ListView;

.field private aa:Ljava/util/Timer;

.field private ab:J

.field private ac:I

.field private ad:Z

.field private ae:Z

.field private af:Z

.field private ag:Z

.field private ah:Landroid/os/Handler;

.field private ai:Lcom/hyphenate/chat/EMGroup;

.field private aj:Z

.field private ak:Z

.field private al:Ljava/lang/String;

.field private am:Landroid/content/BroadcastReceiver;

.field private an:Landroid/content/BroadcastReceiver;

.field private ao:Landroid/os/PowerManager$WakeLock;

.field private ap:Landroid/content/BroadcastReceiver;

.field public e:Z

.field f:Ljava/lang/String;

.field private g:Landroid/view/View;

.field private h:Landroid/widget/ImageView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/view/View;

.field private k:Landroid/view/View;

.field private l:Landroid/view/View;

.field private m:Landroid/view/View;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/support/v4/view/ViewPager;

.field private p:Landroid/widget/LinearLayout;

.field private q:Landroid/widget/LinearLayout;

.field private r:Landroid/view/View;

.field private s:Landroid/content/ClipboardManager;

.field private t:Landroid/view/inputmethod/InputMethodManager;

.field private u:Ljava/util/List;

.field private v:[Landroid/graphics/drawable/Drawable;

.field private w:I

.field private x:Lcom/hyphenate/chat/EMConversation;

.field private y:Lcom/waiqin365/lightapp/im/activity/ac;

.field private z:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;-><init>()V

    const/16 v0, 0x14

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->O:I

    iput-boolean v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->P:Z

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Z:Z

    const-wide/16 v0, 0x3e8

    iput-wide v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ab:J

    const/16 v0, 0x3c

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ac:I

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ad:Z

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ae:Z

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->af:Z

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ag:Z

    iput-boolean v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/g;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/g;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ah:Landroid/os/Handler;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->al:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->f:Ljava/lang/String;

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/l;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/l;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->am:Landroid/content/BroadcastReceiver;

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/m;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/m;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->an:Landroid/content/BroadcastReceiver;

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/o;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/o;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ap:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method static synthetic A(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic B(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic C(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/os/PowerManager$WakeLock;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ao:Landroid/os/PowerManager$WakeLock;

    return-object v0
.end method

.method static synthetic D(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g:Landroid/view/View;

    return-object v0
.end method

.method static synthetic E(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->n:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic F(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a()V

    return-void
.end method

.method static synthetic G(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->af:Z

    return v0
.end method

.method static synthetic H(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ag:Z

    return v0
.end method

.method static synthetic I(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ad:Z

    return v0
.end method

.method static synthetic J(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j:Landroid/view/View;

    return-object v0
.end method

.method static synthetic K(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->N:Z

    return v0
.end method

.method static synthetic L(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->P:Z

    return v0
.end method

.method static synthetic M(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ProgressBar;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->M:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method static synthetic N(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->V:Landroid/widget/TextView;

    return-object v0
.end method

.method private a(I)Landroid/view/View;
    .locals 8

    const/16 v7, 0x45

    const/16 v4, 0x2e

    const/16 v6, 0x17

    const/4 v5, 0x1

    const v0, 0x7f03015d

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c0779

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/widget/ExpandGridView;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-ne p1, v5, :cond_1

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->u:Ljava/util/List;

    const/4 v4, 0x0

    invoke-interface {v3, v4, v6}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    :goto_0
    const-string/jumbo v3, "im_delete_expression"

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v3, Lcom/waiqin365/lightapp/im/adapter/aq;

    invoke-direct {v3, p0, v5, v2}, Lcom/waiqin365/lightapp/im/adapter/aq;-><init>(Landroid/content/Context;ILjava/util/List;)V

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/im/widget/ExpandGridView;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v2, Lcom/waiqin365/lightapp/im/activity/n;

    invoke-direct {v2, p0, v3}, Lcom/waiqin365/lightapp/im/activity/n;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/adapter/aq;)V

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/widget/ExpandGridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-object v1

    :cond_1
    const/4 v3, 0x2

    if-ne p1, v3, :cond_2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->u:Ljava/util/List;

    invoke-interface {v3, v6, v4}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    :cond_2
    const/4 v3, 0x3

    if-ne p1, v3, :cond_3

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->u:Ljava/util/List;

    invoke-interface {v3, v4, v7}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    :cond_3
    const/4 v3, 0x4

    if-ne p1, v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->u:Ljava/util/List;

    const/16 v4, 0x5a

    invoke-interface {v3, v7, v4}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->al:Ljava/lang/String;

    return-object p1
.end method

.method private a()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/ae;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Y:Landroid/os/Handler;

    invoke-direct {v1, p0, v2}, Lcom/waiqin365/lightapp/im/activity/ae;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Landroid/os/Handler;)V

    const-wide/16 v2, 0x0

    iget-wide v4, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ab:J

    invoke-virtual/range {v0 .. v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;JJ)V

    return-void
.end method

.method private a(DDLjava/lang/String;Ljava/lang/String;)V
    .locals 7

    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->LOCATION:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v6

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_0
    new-instance v0, Lcom/hyphenate/chat/EMLocationMessageBody;

    move-object v1, p6

    move-wide v2, p1

    move-wide v4, p3

    invoke-direct/range {v0 .. v5}, Lcom/hyphenate/chat/EMLocationMessageBody;-><init>(Ljava/lang/String;DD)V

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0, v6}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    return-void

    :cond_0
    sget-object v0, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    invoke-direct {p0, p1, p2, p3, p4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/EMChatManager;->getMessage(Ljava/lang/String;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v2, Lcom/waiqin365/lightapp/im/activity/p;->a:[I

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    aget v0, v2, v0

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMTextMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMTextMessageBody;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMImageMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMImageMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_2

    const-string/jumbo v1, ""

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/h;

    invoke-direct {v1, p0, v0}, Lcom/waiqin365/lightapp/im/activity/h;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/hyphenate/chat/EMImageMessageBody;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/activity/h;->start()V

    goto :goto_0

    :cond_2
    invoke-virtual {v0}, Lcom/hyphenate/chat/EMImageMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->al:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->al:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMFileMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d(Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMFileMessageBody;->getRemoteUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d(Ljava/lang/String;)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;I)V
    .locals 7

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    :try_start_0
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->VIDEO:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v6

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v2, 0x2

    if-ne v0, v2, :cond_1

    sget-object v0, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/EMVideoMessageBody;

    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v4

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    invoke-direct/range {v0 .. v5}, Lcom/hyphenate/chat/EMVideoMessageBody;-><init>(Ljava/lang/String;Ljava/lang/String;IJ)V

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0, v6}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_1
    :try_start_1
    sget-object v0, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 4

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    :try_start_0
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->VOICE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    invoke-static {p3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    new-instance v2, Lcom/hyphenate/chat/EMVoiceMessageBody;

    new-instance v3, Ljava/io/File;

    invoke-direct {v3, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v2, v3, v1}, Lcom/hyphenate/chat/EMVoiceMessageBody;-><init>(Ljava/io/File;I)V

    invoke-virtual {v0, v2}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_1
    :try_start_1
    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method

.method private a(Ljava/lang/String;Z)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v1}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1

    sget-object v2, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v1, v2}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_0
    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/EMImageMessageBody;

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2}, Lcom/hyphenate/chat/EMImageMessageBody;-><init>(Ljava/io/File;)V

    if-eqz p2, :cond_0

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/hyphenate/chat/EMImageMessageBody;->setSendOriginalImage(Z)V

    :cond_0
    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->more(Landroid/view/View;)V

    return-void

    :cond_1
    sget-object v2, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v1, v2}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    goto :goto_0
.end method

.method private a(Ljava/util/List;)V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/x;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/x;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-static {p1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ae:Z

    return v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Z:Z

    return p1
.end method

.method private b(I)Ljava/util/List;
    .locals 4

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x1

    :goto_0
    if-gt v0, p1, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "im_ee_"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-object v1
.end method

.method private b()V
    .locals 1

    const/16 v0, 0x3c

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ac:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aa:Ljava/util/Timer;

    :cond_0
    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 3

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_0
    new-instance v1, Lcom/hyphenate/chat/EMTextMessageBody;

    invoke-direct {v1, p1}, Lcom/hyphenate/chat/EMTextMessageBody;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setText(Ljava/lang/CharSequence;)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    :cond_0
    return-void

    :cond_1
    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->af:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)[Landroid/graphics/drawable/Drawable;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->v:[Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h:Landroid/widget/ImageView;

    return-object v0
.end method

.method private c()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/r;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/r;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Y:Landroid/os/Handler;

    return-void
.end method

.method private c(I)V
    .locals 2

    if-ltz p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-gt p1, v0, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->S:I

    if-ne v0, p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    aget-object v0, v0, p1

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->S:I

    aget-object v0, v0, v1

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    iput p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->S:I

    goto :goto_0
.end method

.method private c(Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v1}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_0

    sget-object v2, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v1, v2}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_0
    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/EMImageMessageBody;

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2}, Lcom/hyphenate/chat/EMImageMessageBody;-><init>(Ljava/io/File;)V

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->more(Landroid/view/View;)V

    return-void

    :cond_0
    sget-object v2, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v1, v2}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ad:Z

    return p1
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setVisibility(I)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Z:Z

    if-nez v0, :cond_0

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/m;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A:Ljava/lang/String;

    const v0, 0x7f0c001e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private d(Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x0

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080591

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v0

    const-wide/32 v2, 0xa00000

    cmp-long v0, v0, v2

    if-lez v0, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0802ab

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_2
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->FILE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-static {v0}, Lcom/hyphenate/chat/EMMessage;->createSendMessage(Lcom/hyphenate/chat/EMMessage$Type;)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_3

    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->GroupChat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setReceipt(Ljava/lang/String;)V

    new-instance v1, Lcom/hyphenate/chat/EMNormalFileMessageBody;

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2}, Lcom/hyphenate/chat/EMNormalFileMessageBody;-><init>(Ljava/io/File;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->addBody(Lcom/hyphenate/chat/EMMessageBody;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMConversation;->insertMessage(Lcom/hyphenate/chat/EMMessage;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    goto :goto_0

    :cond_3
    sget-object v1, Lcom/hyphenate/chat/EMMessage$ChatType;->Chat:Lcom/hyphenate/chat/EMMessage$ChatType;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setChatType(Lcom/hyphenate/chat/EMMessage$ChatType;)V

    goto :goto_1
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ak:Z

    return p1
.end method

.method private e()V
    .locals 8

    const/4 v7, 0x1

    const/4 v6, 0x0

    const v5, 0x7f020230

    const v3, 0x7f02022c

    const/4 v4, 0x4

    const v0, 0x7f0c0770

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g:Landroid/view/View;

    const v0, 0x7f0c0771

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h:Landroid/widget/ImageView;

    const v0, 0x7f0c0772

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i:Landroid/widget/TextView;

    const v0, 0x7f0c0201

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    const v0, 0x7f0c0765

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    sput-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    const v0, 0x7f0c0761

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j:Landroid/view/View;

    const v0, 0x7f0c0764

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->L:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c0760

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k:Landroid/view/View;

    const v0, 0x7f0c0769

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l:Landroid/view/View;

    const v0, 0x7f0c0762

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->m:Landroid/view/View;

    const v0, 0x7f0c0763

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->n:Landroid/widget/TextView;

    const v0, 0x7f0c05b3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->o:Landroid/support/v4/view/ViewPager;

    const v0, 0x7f0c05b2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    const v0, 0x7f0c076a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0766

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    const v0, 0x7f0c0767

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    const v0, 0x7f0c076f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->M:Landroid/widget/ProgressBar;

    const v0, 0x7f0c0768

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Q:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f0c021c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    const/16 v0, 0xe

    new-array v0, v0, [Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02022b

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    aput-object v1, v0, v6

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02022b

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    aput-object v1, v0, v7

    const/4 v1, 0x2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/4 v1, 0x3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    aput-object v1, v0, v4

    const/4 v1, 0x5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/4 v1, 0x6

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/4 v1, 0x7

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022e

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0x8

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022e

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0x9

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022f

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0xa

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02022f

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0xb

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0xc

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    const/16 v1, 0xd

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, v0, v1

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->v:[Landroid/graphics/drawable/Drawable;

    const/16 v0, 0x64

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(I)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->u:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-direct {p0, v7}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x2

    invoke-direct {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(I)Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x3

    invoke-direct {p0, v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(I)Landroid/view/View;

    move-result-object v2

    invoke-direct {p0, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(I)Landroid/view/View;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->o:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/waiqin365/lightapp/im/adapter/ar;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-direct {v1, v2}, Lcom/waiqin365/lightapp/im/adapter/ar;-><init>(Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->o:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, p0}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    new-instance v0, Lcom/hyphenate/util/VoiceRecorder;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ah:Landroid/os/Handler;

    invoke-direct {v0, v1}, Lcom/hyphenate/util/VoiceRecorder;-><init>(Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->F:Lcom/hyphenate/util/VoiceRecorder;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->m:Landroid/view/View;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/ad;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/waiqin365/lightapp/im/activity/ad;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/activity/g;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/s;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/s;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/t;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/t;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/u;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/u;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/v;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/v;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->m()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d()V

    return-void
.end method

.method private e(Ljava/lang/String;)V
    .locals 4

    const/4 v3, 0x0

    :try_start_0
    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->contactManager()Lcom/hyphenate/chat/EMContactManager;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, p1, v1}, Lcom/hyphenate/chat/EMContactManager;->addUserToBlackList(Ljava/lang/String;Z)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0807cf

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_0
    .catch Lcom/hyphenate/exceptions/HyphenateException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lcom/hyphenate/exceptions/HyphenateException;->printStackTrace()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0807ce

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aj:Z

    return p1
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ac:I

    return v0
.end method

.method private f()V
    .locals 8

    const v5, 0x7f0c001e

    const/4 v4, 0x0

    const/4 v7, 0x0

    const/4 v6, 0x5

    const/4 v3, 0x1

    sput-object p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-string/jumbo v0, "clipboard"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/ClipboardManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    const-string/jumbo v0, "input_method"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->t:Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    const-string/jumbo v0, "power"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    const/4 v1, 0x6

    const-string/jumbo v2, "demo"

    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ao:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "chatType"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    if-ne v0, v3, :cond_5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "toChatUsername"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "imflag"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userName"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "pic_url"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E:Ljava/lang/String;

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->A:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    if-eqz v0, :cond_8

    :try_start_0
    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_7

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    sget-object v2, Lcom/hyphenate/chat/EMConversation$EMConversationType;->Chat:Lcom/hyphenate/chat/EMConversation$EMConversationType;

    const/4 v3, 0x1

    invoke-virtual {v0, v1, v2, v3}, Lcom/hyphenate/chat/EMChatManager;->getConversation(Ljava/lang/String;Lcom/hyphenate/chat/EMConversation$EMConversationType;Z)Lcom/hyphenate/chat/EMConversation;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getAllMessages()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getAllMessages()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/16 v1, 0x14

    if-ge v0, v1, :cond_1

    :try_start_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getAllMessages()Ljava/util/List;

    move-result-object v0

    const/4 v2, 0x0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getMsgId()Ljava/lang/String;

    move-result-object v0

    const/16 v2, 0x13

    invoke-virtual {v1, v0, v2}, Lcom/hyphenate/chat/EMConversation;->loadMoreMsgFromDB(Ljava/lang/String;I)Ljava/util/List;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :cond_1
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getAllMessages()Ljava/util/List;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->markAllMessagesAsRead()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    const v2, 0x3f333333    # 0.7f

    invoke-static {p0, v0, v2}, Lcom/waiqin365/lightapp/im/utils/SmileUtils;->getSmiledText(Landroid/content/Context;Ljava/lang/CharSequence;F)Landroid/text/Spannable;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->append(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "_TIME"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-wide/16 v2, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;J)V

    :cond_2
    new-instance v0, Lcom/waiqin365/lightapp/im/adapter/bk;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->E:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->B:Ljava/lang/String;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/lightapp/im/adapter/bk;-><init>(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/ab;

    invoke-direct {v1, p0, v7}, Lcom/waiqin365/lightapp/im/activity/ab;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/activity/g;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getCount()I

    move-result v0

    if-lez v0, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/w;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/w;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/ac;

    invoke-direct {v0, p0, v7}, Lcom/waiqin365/lightapp/im/activity/ac;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/activity/g;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->y:Lcom/waiqin365/lightapp/im/activity/ac;

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "com.em.receiver.newmessage"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v6}, Landroid/content/IntentFilter;->setPriority(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->y:Lcom/waiqin365/lightapp/im/activity/ac;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "com.em.receiver.ackmessage"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v6}, Landroid/content/IntentFilter;->setPriority(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->am:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "com.em.receiver.deliveryack"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v6}, Landroid/content/IntentFilter;->setPriority(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->an:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/y;

    invoke-direct {v0, p0, v7}, Lcom/waiqin365/lightapp/im/activity/y;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/waiqin365/lightapp/im/activity/g;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->I:Lcom/waiqin365/lightapp/im/activity/y;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->I:Lcom/waiqin365/lightapp/im/activity/y;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMGroupManager;->addGroupChangeListener(Lcom/hyphenate/EMGroupChangeListener;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "forward_msg_id"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/lang/String;)V

    :cond_4
    :goto_3
    return-void

    :cond_5
    const v0, 0x7f0c075d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "groupId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMGroupManager;->getGroup(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ai:Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->U:Landroid/widget/TextView;

    const v0, 0x7f0c075c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->V:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ai:Lcom/hyphenate/chat/EMGroup;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ai:Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroup;->getGroupName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ai:Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroup;->getMembers()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    if-lez v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->U:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->V:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->U:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_7
    :try_start_2
    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    sget-object v2, Lcom/hyphenate/chat/EMConversation$EMConversationType;->GroupChat:Lcom/hyphenate/chat/EMConversation$EMConversationType;

    const/4 v3, 0x1

    invoke-virtual {v0, v1, v2, v3}, Lcom/hyphenate/chat/EMChatManager;->getConversation(Ljava/lang/String;Lcom/hyphenate/chat/EMConversation$EMConversationType;Z)Lcom/hyphenate/chat/EMConversation;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto/16 :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_2

    :cond_8
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto/16 :goto_3
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ag:Z

    return p1
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i:Landroid/widget/TextView;

    return-object v0
.end method

.method private g()V
    .locals 7

    const/4 v6, 0x0

    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/b;->a()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0805a7

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-static {}, Lcom/hyphenate/util/PathUtil;->getInstance()Lcom/hyphenate/util/PathUtil;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/util/PathUtil;->getImagePath()Ljava/io/File;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ".jpg"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    iput-boolean v6, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.media.action.IMAGE_CAPTURE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "output"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-static {v2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    move-result-object v0

    const/16 v1, 0x12

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ae:Z

    return p1
.end method

.method private h()V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    const/16 v1, 0x18

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b()V

    return-void
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->P:Z

    return p1
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/util/VoiceRecorder;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->F:Lcom/hyphenate/util/VoiceRecorder;

    return-object v0
.end method

.method private i()V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    const/16 v1, 0x13

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->N:Z

    return p1
.end method

.method static synthetic j(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    return-object v0
.end method

.method private j()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getAllMessages()Ljava/util/List;

    move-result-object v0

    sget v1, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMMessage;

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Status;->CREATE:Lcom/hyphenate/chat/EMMessage$Status;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMMessage;->setStatus(Lcom/hyphenate/chat/EMMessage$Status;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    sget v1, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d:I

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    return-void
.end method

.method static synthetic k(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ac:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ac:I

    return v0
.end method

.method private k()V
    .locals 3

    const/4 v2, 0x2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->softInputMode:I

    if-eq v0, v2, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->t:Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    return-void
.end method

.method static synthetic l(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    return-object v0
.end method

.method private l()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    return-void
.end method

.method static synthetic m(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    return-object v0
.end method

.method private m()V
    .locals 5

    const/4 v3, 0x0

    const v0, 0x7f0c05b4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    new-array v1, v1, [Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    move v2, v3

    :goto_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->T:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v2, v1, :cond_0

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    aput-object v1, v4, v2

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    aget-object v1, v1, v2

    const/4 v4, 0x1

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setEnabled(Z)V

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_0

    :cond_0
    iput v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->S:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->R:[Landroid/widget/ImageView;

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->S:I

    aget-object v0, v0, v1

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    return-void
.end method

.method static synthetic n(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic o(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic p(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic q(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/widget/Button;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Q:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic r(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l:Landroid/view/View;

    return-object v0
.end method

.method static synthetic s(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->w:I

    return v0
.end method

.method static synthetic t(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ak:Z

    return v0
.end method

.method static synthetic u(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->aj:Z

    return v0
.end method

.method static synthetic v(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k()V

    return-void
.end method

.method static synthetic w(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->al:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic x(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Landroid/content/ClipboardManager;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    return-object v0
.end method

.method static synthetic y(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/hyphenate/chat/EMConversation;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    return-object v0
.end method

.method static synthetic z(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)Lcom/waiqin365/lightapp/im/adapter/bk;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    return-object v0
.end method


# virtual methods
.method public back(Landroid/view/View;)V
    .locals 4

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "_TIME"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;J)V

    :goto_0
    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/utils/d;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/utils/d;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "_TIME"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-wide/16 v2, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/im/utils/d;->a(Ljava/lang/String;J)V

    goto :goto_0
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->superDispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public more(Landroid/view/View;)V
    .locals 3

    const/16 v2, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-ne v0, v2, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 9

    const/4 v8, 0x7

    const/4 v0, 0x3

    const-wide/16 v6, 0x0

    const/4 v5, -0x1

    const/4 v1, 0x0

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    if-ne p2, v8, :cond_1

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-ne p1, v0, :cond_2

    packed-switch p2, :pswitch_data_0

    :cond_2
    :goto_1
    :pswitch_0
    if-ne p2, v5, :cond_0

    const/4 v0, 0x2

    if-ne p1, v0, :cond_6

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/hyphenate/chat/EMChatManager;->deleteConversation(Ljava/lang/String;Z)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    const-string/jumbo v2, "position"

    invoke-virtual {p3, v2, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(I)Lcom/hyphenate/chat/EMMessage;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMMessage;->getType()Lcom/hyphenate/chat/EMMessage$Type;

    move-result-object v0

    sget-object v3, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    if-ne v0, v3, :cond_5

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMImageMessageBody;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMMessage;->direct()Lcom/hyphenate/chat/EMMessage$Direct;

    move-result-object v2

    sget-object v3, Lcom/hyphenate/chat/EMMessage$Direct;->RECEIVE:Lcom/hyphenate/chat/EMMessage$Direct;

    if-ne v2, v3, :cond_4

    new-instance v2, Ljava/io/File;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMImageMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_3

    const-string/jumbo v2, ""

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v2, Lcom/waiqin365/lightapp/im/activity/j;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/im/activity/j;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;Lcom/hyphenate/chat/EMImageMessageBody;)V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/activity/j;->start()V

    goto :goto_1

    :cond_3
    invoke-virtual {v0}, Lcom/hyphenate/chat/EMImageMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "EASEMOBIMG"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->f:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :cond_4
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "EASEMOBIMG"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMImageMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/content/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    :cond_5
    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMMessage;->getBody()Lcom/hyphenate/chat/EMMessageBody;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMTextMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMTextMessageBody;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/content/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    const-string/jumbo v2, "position"

    invoke-virtual {p3, v2, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(I)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getMsgId()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/hyphenate/chat/EMConversation;->removeMessage(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    const-string/jumbo v2, "position"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/im/adapter/bk;->getCount()I

    move-result v3

    invoke-virtual {p3, v2, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    goto/16 :goto_1

    :pswitch_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    const-string/jumbo v2, "position"

    invoke-virtual {p3, v2, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(I)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/im/activity/ForwardMessageActivity;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "forward_msg_id"

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getMsgId()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {p0, v0, v2}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto/16 :goto_1

    :cond_6
    const/16 v0, 0x12

    if-ne p1, v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightapp/im/gallery/GalleryCameraReviewActivity;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "cameraFile"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    const/16 v1, 0x1a

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_7
    const/16 v0, 0x1a

    if-ne p1, v0, :cond_8

    const-string/jumbo v0, "cameraFile"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    const-string/jumbo v0, "isOriginal"

    invoke-virtual {p3, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->H:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/lang/String;Z)V

    goto/16 :goto_0

    :cond_8
    const/16 v0, 0x17

    if-ne p1, v0, :cond_f

    const-string/jumbo v0, "dur"

    invoke-virtual {p3, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    const-string/jumbo v0, "path"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/io/File;

    invoke-static {}, Lcom/hyphenate/util/PathUtil;->getInstance()Lcom/hyphenate/util/PathUtil;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/util/PathUtil;->getImagePath()Ljava/io/File;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "thvideo"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v6, v0, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    const/4 v2, 0x0

    const/4 v1, 0x0

    :try_start_0
    invoke-virtual {v6}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_9

    invoke-virtual {v6}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    :cond_9
    const/4 v0, 0x3

    invoke-static {v5, v0}, Landroid/media/ThumbnailUtils;->createVideoThumbnail(Ljava/lang/String;I)Landroid/graphics/Bitmap;

    move-result-object v2

    if-nez v2, :cond_22

    const-string/jumbo v0, "chatactivity"

    const-string/jumbo v3, "problem load video thumbnail bitmap,use default icon"

    invoke-static {v0, v3}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v3, 0x7f02017c

    invoke-static {v0, v3}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v3

    :goto_2
    :try_start_1
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, v6}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :try_start_2
    sget-object v0, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v1, 0x64

    invoke-virtual {v3, v0, v1, v2}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_5
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    if-eqz v2, :cond_a

    :try_start_3
    invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :cond_a
    :goto_3
    if-eqz v3, :cond_b

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->recycle()V

    :cond_b
    :goto_4
    invoke-virtual {v6}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    div-int/lit16 v1, v4, 0x3e8

    invoke-direct {p0, v5, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/lang/String;Ljava/lang/String;I)V

    goto/16 :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_3

    :catch_1
    move-exception v0

    :goto_5
    :try_start_4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v1, :cond_c

    :try_start_5
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2

    :cond_c
    :goto_6
    if-eqz v2, :cond_b

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->recycle()V

    goto :goto_4

    :catch_2
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_6

    :catchall_0
    move-exception v0

    :goto_7
    if-eqz v1, :cond_d

    :try_start_6
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_3

    :cond_d
    :goto_8
    if-eqz v2, :cond_e

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->recycle()V

    :cond_e
    throw v0

    :catch_3
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_8

    :cond_f
    const/16 v0, 0x13

    if-ne p1, v0, :cond_11

    if-eqz p3, :cond_0

    const-string/jumbo v0, "photoItems"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    move v2, v1

    :goto_9
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->d:Z

    if-eqz v1, :cond_10

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-object v3, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->c:Ljava/lang/String;

    if-eqz v3, :cond_10

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->e:Z

    invoke-direct {p0, v3, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(Ljava/lang/String;Z)V

    :cond_10
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_9

    :cond_11
    const/16 v0, 0x18

    if-ne p1, v0, :cond_12

    if-eqz p3, :cond_0

    const-string/jumbo v0, "filename"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_12
    const/4 v0, 0x4

    if-ne p1, v0, :cond_14

    const-string/jumbo v0, "latitude"

    invoke-virtual {p3, v0, v6, v7}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v2

    const-string/jumbo v0, "longitude"

    invoke-virtual {p3, v0, v6, v7}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v4

    const-string/jumbo v0, "address"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_13

    const-string/jumbo v0, ""

    invoke-virtual {v7, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_13

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->more(Landroid/view/View;)V

    const-string/jumbo v6, ""

    move-object v1, p0

    invoke-direct/range {v1 .. v7}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a(DDLjava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_13
    const v0, 0x7f080809

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_14
    const/4 v0, 0x5

    if-ne p1, v0, :cond_15

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j()V

    goto/16 :goto_0

    :cond_15
    const/4 v0, 0x6

    if-ne p1, v0, :cond_16

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j()V

    goto/16 :goto_0

    :cond_16
    if-ne p1, v8, :cond_17

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j()V

    goto/16 :goto_0

    :cond_17
    const/16 v0, 0x8

    if-ne p1, v0, :cond_18

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j()V

    goto/16 :goto_0

    :cond_18
    const/16 v0, 0xe

    if-eq p1, v0, :cond_19

    const/16 v0, 0xa

    if-ne p1, v0, :cond_1a

    :cond_19
    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j()V

    goto/16 :goto_0

    :cond_1a
    const/16 v0, 0xb

    if-ne p1, v0, :cond_1b

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    invoke-virtual {v0}, Landroid/content/ClipboardManager;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->s:Landroid/content/ClipboardManager;

    invoke-virtual {v0}, Landroid/content/ClipboardManager;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "EASEMOBIMG"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "EASEMOBIMG"

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_1b
    const/16 v0, 0x19

    if-ne p1, v0, :cond_1c

    if-eqz p3, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    const-string/jumbo v1, "position"

    invoke-virtual {p3, v1, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(I)Lcom/hyphenate/chat/EMMessage;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->getFrom()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_1c
    const/16 v0, 0x15

    if-ne p1, v0, :cond_1f

    if-eqz p3, :cond_1e

    const-string/jumbo v0, "groupname"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    const-string/jumbo v0, "groupSize"

    invoke-virtual {p3, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string/jumbo v0, ""

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    if-lez v0, :cond_1d

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->U:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->V:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->X:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_a
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    goto/16 :goto_0

    :cond_1d
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->U:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->W:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_a

    :cond_1e
    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_1f
    const/16 v0, 0x1b

    if-ne p1, v0, :cond_21

    if-eqz p3, :cond_20

    const-string/jumbo v0, "empInfos"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    sget-object v1, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, " "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    sget-object v1, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setSelection(I)V

    :cond_20
    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l()V

    goto/16 :goto_0

    :cond_21
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->x:Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getUnreadMsgCount()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setResult(I)V

    goto/16 :goto_0

    :catchall_1
    move-exception v0

    move-object v2, v3

    goto/16 :goto_7

    :catchall_2
    move-exception v0

    move-object v1, v2

    move-object v2, v3

    goto/16 :goto_7

    :catch_4
    move-exception v0

    move-object v2, v3

    goto/16 :goto_5

    :catch_5
    move-exception v0

    move-object v1, v2

    move-object v2, v3

    goto/16 :goto_5

    :cond_22
    move-object v3, v2

    goto/16 :goto_2

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method public onBackPressed()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->back(Landroid/view/View;)V

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x4

    const/16 v2, 0x8

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D:Ljava/lang/String;

    if-eqz v0, :cond_1

    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08030a

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C:Ljava/lang/String;

    if-eqz v0, :cond_3

    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string/jumbo v0, "3"

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->C:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080306

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080309

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_3
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0c0769

    if-ne v0, v1, :cond_6

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0xfa0

    if-le v1, v2, :cond_4

    const v0, 0x7f0807bb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_4
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    const v0, 0x7f0807bc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_5
    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_6
    const v1, 0x7f0c076c

    if-ne v0, v1, :cond_7

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g()V

    goto/16 :goto_0

    :cond_7
    const v1, 0x7f0c076b

    if-ne v0, v1, :cond_8

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->i()V

    goto/16 :goto_0

    :cond_8
    const v1, 0x7f0c0766

    if-ne v0, v1, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    goto/16 :goto_0

    :cond_9
    const v1, 0x7f0c0767

    if-ne v0, v1, :cond_a

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_a
    const v1, 0x7f0c076d

    if-ne v0, v1, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->h()V

    goto/16 :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030141

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->setContentView(I)V

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/m;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->D:Ljava/lang/String;

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "im.groupinfo"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ap:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->f()V

    new-instance v0, Lcom/waiqin365/lightapp/im/activity/q;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/activity/q;-><init>(Lcom/waiqin365/lightapp/im/activity/ChatActivity;)V

    invoke-static {p0, v2, v2, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    const-string/jumbo v0, "im_chatview"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    const/4 v0, 0x0

    invoke-super {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onDestroy()V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;)V

    sput-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c:Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->I:Lcom/waiqin365/lightapp/im/activity/y;

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->I:Lcom/waiqin365/lightapp/im/activity/y;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMGroupManager;->removeGroupChangeListener(Lcom/hyphenate/EMGroupChangeListener;)V

    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->y:Lcom/waiqin365/lightapp/im/activity/ac;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ap:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->y:Lcom/waiqin365/lightapp/im/activity/ac;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ap:Landroid/content/BroadcastReceiver;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->am:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->am:Landroid/content/BroadcastReceiver;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->an:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->an:Landroid/content/BroadcastReceiver;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :goto_1
    return-void

    :catch_0
    move-exception v0

    goto :goto_1

    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 2

    const-string/jumbo v0, "userId"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onNewIntent(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->finish()V

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method

.method public onPageScrollStateChanged(I)V
    .locals 0

    return-void
.end method

.method public onPageScrolled(IFI)V
    .locals 0

    return-void
.end method

.method public onPageSelected(I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->c(I)V

    return-void
.end method

.method protected onPause()V
    .locals 2

    invoke-super {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onPause()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ao:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->ao:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_0
    sget-boolean v0, Lcom/waiqin365/lightapp/im/adapter/ct;->a:Z

    if-eqz v0, :cond_1

    sget-object v0, Lcom/waiqin365/lightapp/im/adapter/ct;->b:Lcom/waiqin365/lightapp/im/adapter/ct;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/waiqin365/lightapp/im/adapter/ct;->b:Lcom/waiqin365/lightapp/im/adapter/ct;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/ct;->a()V

    :cond_1
    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->F:Lcom/hyphenate/util/VoiceRecorder;

    invoke-virtual {v0}, Lcom/hyphenate/util/VoiceRecorder;->isRecording()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->F:Lcom/hyphenate/util/VoiceRecorder;

    invoke-virtual {v0}, Lcom/hyphenate/util/VoiceRecorder;->discardRecording()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->g:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected onResume()V
    .locals 3

    const/4 v2, 0x1

    invoke-super {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onResume()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->G:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a()V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    if-ne v0, v2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->a:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V

    :cond_0
    iput-boolean v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    return-void
.end method

.method public setModeKeyboard(Landroid/view/View;)V
    .locals 3

    const/4 v2, 0x0

    const/16 v1, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->L:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->requestFocus()Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->m:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->b:Lcom/waiqin365/lightapp/im/widget/PasteEditText;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/widget/PasteEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Q:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Q:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method public setModeVoice(Landroid/view/View;)V
    .locals 4

    const/16 v3, 0x8

    const/4 v2, 0x0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->k()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->L:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->r:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->j:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->l:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->Q:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->m:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->J:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->K:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method public toGroupDetails(Landroid/view/View;)V
    .locals 3

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "groupId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->z:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    const/16 v1, 0x15

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    return-void
.end method
